package com.zlc.common.model.resource;

import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * 当前用户拥有的资源
 */
public class MyResourceVo {

    /**
     * 资源ID
     */
    @ApiModelProperty(value="资源ID")
    private String resourceId;

    /**
     * 父资源ID
     */
    @ApiModelProperty(value="父资源ID")
    private String parentResourceId;


    /**
     * 资源类别 WEB|APP
     */
    @ApiModelProperty(value="资源类别 WEB|APP")
    private String resourceCategory;

    /**
     * 资源类型 MENU|GROUP|SUBMENU
     */
    @ApiModelProperty(value="资源类型 MENU|GROUP|SUBMENU")
    private String resourceType;

    /**
     * 资源code
     */
    @ApiModelProperty(value="资源code")
    private String resourceCode;

    /**
     * 资源名称
     */
    @ApiModelProperty(value="资源名称")
    private String resourceName;

    /**
     * 半路径地址
     */
    @ApiModelProperty(value="半路径地址")
    private String urlPath;

    /**
     * 图标
     */
    @ApiModelProperty(value="图标")
    private String icon;


    @ApiModelProperty(value = "是否是叶子节点资源")
    private String leafFlag;

    /**
     * 排序
     */
    @ApiModelProperty(value="排序")
    private Integer order = 0;

    /**
     * 标题
     */
    private String title;


    private List<MyResourceVo> children = new ArrayList<>();

    public List<MyResourceVo> getChildren() {
        return children;
    }

    public void setChildren(List<MyResourceVo> children) {
        this.children = children;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getParentResourceId() {
        return parentResourceId;
    }

    public void setParentResourceId(String parentResourceId) {
        this.parentResourceId = parentResourceId;
    }

    public String getResourceCategory() {
        return resourceCategory;
    }

    public void setResourceCategory(String resourceCategory) {
        this.resourceCategory = resourceCategory;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getResourceCode() {
        return resourceCode;
    }

    public void setResourceCode(String resourceCode) {
        this.resourceCode = resourceCode;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getUrlPath() {
        return urlPath;
    }

    public void setUrlPath(String urlPath) {
        this.urlPath = urlPath;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getLeafFlag() {
        return leafFlag;
    }

    public void setLeafFlag(String leafFlag) {
        this.leafFlag = leafFlag;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }
}
